import java.util.*;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: GodK
 * Date: 2024-04-23
 * Time: 12:11
 */
class Student {
    public String stuN;

    public Student(String stuN) {
        this.stuN = stuN;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return Objects.equals(stuN, student.stuN);
    }

    @Override
    public int hashCode() {
        return Objects.hash(stuN);
    }
}
public class Test {
    public static void main(String[] args) {
        Student student1 = new Student("240115");
        HashBucket<Student,Double> hashBucket = new HashBucket<>();
        hashBucket.put(student1,99.99);
        Student student2 = new Student("240115");

        System.out.println(hashBucket.get(student2));
    }
}
